package mapper;

import domain.Order;
import domain.OrderItem;

import java.util.List;

public interface OrderMapper {
    int insertOrder(Order order);

    int insertOrderItem(OrderItem orderItem);

    int batchInsertOrderItems(List<OrderItem> orderItems);

    int batchDeleteOrderItems(List<Integer> orderItems);

    List<OrderItem> selectOrderItemsByOrderId(Integer orderId);

    Order selectOrderById(Integer id);

    List<Order> selectAllOrders();
}
